/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bttk.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 客户资料管理Entity
 * @author soyatec
 * @version 2016-11-03
 */
public class TCustomer extends DataEntity<TCustomer> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 隶属商户编号
	private String name;		// 客户姓名
	private String phone;		// 客户手机号
	private Date registerTime;		// 拓客时间
	
	public TCustomer() {
		super();
	}

	public TCustomer(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=63, message="客户姓名长度必须介于 0 和 63 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=127, message="客户手机号长度必须介于 0 和 127 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}
	
}